#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyCoin(QWidget *parent = nullptr);

    //参数:默认显示什么图片
    MyCoin(QString coinImg);

    int posX;
    int posY;
    bool flag;//正反标识
    bool isWin;//是否胜利

    void changeFlag();
    QTimer *timer1;
    QTimer *timer2;
    int min=1;//图片索引号
    int max=8;

    bool isAnimation;

    void mousePressEvent(QMouseEvent *e);
signals:

public slots:
};

#endif // MYCOIN_H
